package com.xiaoqi.api.mapper;

import com.xiaoqi.api.pojo.Engineer;
import com.xiaoqi.api.query.EngineerQuery;
import com.xiaoqi.api.vo.EngineerVO;
import com.xiaoqi.api.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Mapper
@Component
public interface EngineerMapper {


    EngineerVO login(@Param("loginName") String loginName, @Param("password") String password);

    void add(Engineer engineer);

    List<EngineerVO> find(EngineerQuery engineerQuery);

    void update(Engineer engineer);

    EngineerVO findById(long id);
}
